package model;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Litha
 */
public class Anggota {

    private String id;
    private String nama;

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    //1oktober modul 5
    public void setId(String id) throws Exception {
        if (id.length() == 10) {
            this.id = id;
        } else {
            throw new Exception("panjang idAnggota salah");
        }

    }

    /**
     * @return the nama
     */
    public String getNama() {
        return nama;
    }

    /**
     * @param nama the nama to set
     */
    public void setNama(String nama) {
        this.nama = nama;
    }
}
